package router

import (
	"github.com/gin-gonic/gin"
	"specifica_video_manage/server"
)

func TaskRouterInit(r *gin.Engine) {
	taskRouters := r.Group("/task")

	{
		// static server
		taskRouters.GET("/", server.TaskServer{}.Index)
		taskRouters.GET("/migrate", server.TaskServer{}.AutoMigrate)
		taskRouters.POST("/add", server.TaskServer{}.AddTask)

	}

}
